<div class="form-group">
  <div class="input-group">
    <!-- <div class="input-group-addon" style="font-size:10px"></div> -->
    <input  type="text" class="form-control" [(ngModel)]="oo.devicename" placeholder="设备型号、名称..." />
  </div>
</div>
<div class="form-group">
  <div class="input-group">
    <div class="input-group-addon" style="font-size:10px">地区</div>
    <select class="form-control" [(ngModel)]="oo.province" name="province" (change)="oo.city='';oo.district=''">
      <option value="" >--请选择--</option>
      <option *ngFor='let item  of division |  values' [value]="item">{{item}}</option>
    </select>
  </div>
</div>
<div class="form-group">
  <select  class="form-control"  [(ngModel)]="oo.city" name="city" (change)="oo.district=''" *ngIf="oo.province!=''">
    <option value="" >--请选择--</option>
    <option *ngFor='let item  of division[oo.province] |  values' [value]="item">{{item}}</option>
  </select>

  <select  class="form-control"  [(ngModel)]="oo.city" name="city" (change)="oo.district=''" *ngIf="oo.province==''">
    <option value="" >--请选择--</option>
  </select>
</div>
<div class="form-group">
  <select  class="form-control" [(ngModel)]="oo.district" name="district" *ngIf="oo.city!=''">
    <option value="" >--请选择--</option>
    <option *ngFor='let item  of division[oo.province][oo.city] ' [value]="item">{{item}}</option>
  </select>

  <select  class="form-control" [(ngModel)]="oo.district" name="district" *ngIf="oo.city==''">
    <option value="" >--请选择--</option>
  </select>
</div>
<button class="btn btn-default" style="font-size:10px;height:34px" (click)="submit()">搜索</button>
